package operation;

import book.Book;
import book.BookList;
import book.ListNode;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-09-08
 * Time: 11:04
 */
public class DisplayOperation implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书");
        ListNode cur = bookList.getHead();
        while (cur != null){
            System.out.println(cur.val);
            cur = cur.next;
        }
    }
}
